<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
	</head>
	<body>
		<input type="text" id="userName" value="gao" />
		<input type="text" id="userEmail" value="gao@163.com" />
		<input id="btn" type="button" value="点我" />
	
		<script src="../js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			/* window.onload = function() {
				var inputs = document.getElementsByTagName("input");
				console.log(inputs);
				console.log(inputs[1]);
			} */
			
			$(function() {
				$("#btn").on("click", function() {
					console.log("click");
					var email = $("input:eq(1)").val();
					console.log(email);
				});
				
			});
		</script>
	</body>
</html>
